//
//  UIImage+BZTheme.h
//  MZBasic
//
//  Created by Sings on 2022/8/22.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, GradientDirection) {
    GradientDirectionTopToBottom = 0,    // 从上往下 渐变
    GradientDirectionLeftToRight,        // 从左往右
    GradientDirectionBottomToTop,      // 从下往上
    GradientDirectionRightToLeft      // 从右往左
};

NS_ASSUME_NONNULL_BEGIN

@interface UIImage (BZTheme)

+ (instancetype) BZTheme_imageNameWithKey:(NSString *) imageKey;

+ (instancetype) BZTheme_image:(NSString *) imagePath;

+ (UIImage*)gradientImageWithSize:(CGSize)size colors:(NSArray*)colors gradientType:(GradientDirection)gradientType;

@end

NS_ASSUME_NONNULL_END
